package com.sigurolio.cruspath.ui;

import com.sigurolio.cruspath.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainMenu extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mainmenu);
        
		final Button singlePLayerButton = (Button) findViewById(R.id.singlePlayerButton);
		singlePLayerButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				intentSinglePlayer(view);
			}
		});
    }

    public void intentSinglePlayer(View view)  {
    	
        Intent lobbyIntent = new Intent(view.getContext(), Lobby.class);
        lobbyIntent.putExtra("online", "false");
        startActivity(lobbyIntent);
    }
    
    public void intentMultiPlayer(View view)  {
    	//Opnar annan glugga sem b��ur upp � "Host" e�a "join", �a�an fer marr svo � lobby
    }
    
}
